import request from '@utils/request'

// 获取员工详情
const getMyUserInfo = async (data) => {
    return request({
        url: '/server/GetMyUserInfo',
        method: 'get',
        data
    })
}


// 获取员工列表
const getServerUserList = async (data) => {
    return request({
        url: '/server/GetServerUserList',
        method: 'get',
        data
    })
}

// 添加员工
const addServerUser = async (data) => {
    return request({
        url: '/server/AddServerUser',
        method: 'post',
        data
    })
}

// 编辑员工
const editServerUser = async (data) => {
    return request({
        url: '/server/EditServerUser',
        method: 'post',
        data
    })
}

// 删除员工
const deleteServerUser = async (data) => {
    return request({
        url: '/server/DeleteServerUser',
        method: 'get',
        data
    })
}

export {
    getServerUserList,
    addServerUser,
    editServerUser,
    deleteServerUser,
    getMyUserInfo
}
